package com.tanhua.app.task;

import com.tanhua.app.service.PeachblossomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SoundTask {

    @Autowired
    private PeachblossomService peachblossomService;

    @Scheduled(cron = "0 0 0 1/1 * ? ")
    public void task(){
        peachblossomService.dayTask();
    }
}
